<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head></head>
<body>
Allows you to consume any web service with just a few simple steps.
<p>
The <code>SoapClient</code> only constructs the request to the web service.
The response from the webservice should be handled appropriately via the <code>
SoapHandler.handleResponse</code> interface.<br/>
<b>Steps Involved in consuming a websevice</b><br/>
 <li>Create a SoapClient<br/>
  &nbsp;&nbsp;<code>SoapClient client=new SoapClient("http://mywebservice.com/service.asmx");
	  </code><br/></li>
  <li>Construct a SoapMessage<br/>&nbsp;&nbsp;<code> SoapMessage getCity=new
  SoapMessage("getTemperature",new String[]{"cityName"},new String[]{"Tokyo"});
  </code><br/>&nbsp; Here <code>getTemperature</code> is the name of the method to be
  called<br/> &nbsp;The first string array is the paramater list<br/>&nbsp; The second
  string is the value list<br/></li>
  <li>
  Assign the message to the client<br/>
  &nbsp;&nbsp;<code>client.setSoapMessage(getCity);</code><br/></li>
  <li>
  Assign the SoapHandler to the client<br/>&nbsp; The Soap Handler is used to handle
  web service responses and errors and should be implemented by the developer
  using the SOAPhandler interface<br/>
 &nbsp;&nbsp; <code> client.setSoapHandler(&ltimplementing-class&gt);</code></li>
 <li>
 Call the webservice<br/>&nbsp;&nbsp; <code> public void commandAction(Command
  c,Displayable d)<br/> &nbsp;&nbsp;...<br/>&nbsp;&nbsp; ...<br/> &nbsp;&nbsp; client.call(); </code></li>
  </ul>
</p>
</body>
</html>